﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.db2
{
	// Token: 0x020001D8 RID: 472
	public class TDb2FetchCursorStmt : TCustomDb2Stmt
	{
		// Token: 0x06000FDB RID: 4059 RVA: 0x0030C44D File Offset: 0x0030A64D
		public TDb2FetchCursorStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstdb2fetchcursorstmt;
		}

		// Token: 0x06000FDC RID: 4060 RVA: 0x0030C461 File Offset: 0x0030A661
		internal override void buildsql()
		{
		}

		// Token: 0x06000FDD RID: 4061 RVA: 0x0030C463 File Offset: 0x0030A663
		internal override void clear()
		{
		}

		// Token: 0x06000FDE RID: 4062 RVA: 0x0030C465 File Offset: 0x0030A665
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x06000FDF RID: 4063 RVA: 0x0030C46C File Offset: 0x0030A66C
		internal override void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x170002F4 RID: 756
		// (get) Token: 0x06000FE0 RID: 4064 RVA: 0x0030C46E File Offset: 0x0030A66E
		// (set) Token: 0x06000FE1 RID: 4065 RVA: 0x0030C476 File Offset: 0x0030A676
		public virtual TObjectName CursorName
		{
			get
			{
				return this.cursorName;
			}
			set
			{
				this.cursorName = value;
			}
		}

		// Token: 0x170002F5 RID: 757
		// (get) Token: 0x06000FE2 RID: 4066 RVA: 0x0030C47F File Offset: 0x0030A67F
		// (set) Token: 0x06000FE3 RID: 4067 RVA: 0x0030C487 File Offset: 0x0030A687
		public virtual TObjectNameList VariableNames
		{
			get
			{
				return this.variableNames;
			}
			set
			{
				this.variableNames = value;
			}
		}

		// Token: 0x06000FE4 RID: 4068 RVA: 0x0030C490 File Offset: 0x0030A690
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			TFetchSqlNode tfetchSqlNode = (TFetchSqlNode)this.rootNode;
			base.doParseStatement(psql);
			this.cursorName = tfetchSqlNode.CursorName;
			this.variableNames = tfetchSqlNode.VariableNames;
			return 0;
		}

		// Token: 0x06000FE5 RID: 4069 RVA: 0x0030C4D4 File Offset: 0x0030A6D4
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000FE6 RID: 4070 RVA: 0x0030C4E4 File Offset: 0x0030A6E4
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001383 RID: 4995
		private TObjectName cursorName;

		// Token: 0x04001384 RID: 4996
		private TObjectNameList variableNames;
	}
}
